﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ProjectFitus.Models.SubSite>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjostagjof.is | <%=Model.title %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <% if (User.IsInRole("Administrators"))
           { %>
        <%: Html.ActionLink("Breyta", "Edit", new { id = Model.id })%> |
        <%: Html.ActionLink("Aftur á forsíðu", "Index", "Home")%>
        <%} %>
    </p>
    <h2><%= Model.title %></h2>

     <p>
        <%= Server.HtmlDecode(Model.contentText) %>

    </p>
    <p>
        <% if (User.IsInRole("Administrators"))
           { %>
        <%: Html.ActionLink("Breyta", "Edit", new { id = Model.id })%> |
        <%: Html.ActionLink("Aftur á forsíðu", "Index", "Home")%>
        <%} %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SideContent" runat="server">
</asp:Content>

